$(function () {
	//初始化省份列表
	getAllProvinceDataTree('provinceListDiv');
});

function saveStaff() {
	WEB.msg.info("提示","保存成功",function(){
                    window.location.href = "staffList.html";
                });
}

function goBack(){
    window.location.href = "staffList.html";
}

/**
 * 区域选择
 */
function selectProvinceConfirm() {
	$("#select_province_modal").modal('hide');

    var selectAreaArr = $('#provinceListDiv').treeview('getSelected');
    var provinceName=selectAreaArr[0].text;
    $("#provinceName").val(provinceName);
}

function showModal(){
	$("#select_province_modal").modal('show');

}